/**
 * Copyright (c) 2015-2017, Henry Yang 杨勇 (gismail@foxmail.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.lambkit.module.pay.rpc.model.sql;

import com.lambkit.db.sql.ConditionMode;
import com.lambkit.db.sql.column.Column;
import com.lambkit.db.sql.column.Columns;
import com.lambkit.db.sql.column.Example;

import java.io.Serializable;
import java.util.List;

/**
 * @author Henry 杨勇 (孤竹行) 
 * @website: www.lambkit.com
 * @email: gismail@foxmail.com
 * @date 2019-11-05
 * @version 1.0
 * @since 1.0
 */
public class PayVendorCriteria extends Columns implements Serializable {
	private static final long serialVersionUID = 1L;
	
	public static PayVendorCriteria create() {
		return new PayVendorCriteria();
	}
	
	public static PayVendorCriteria create(Column column) {
		PayVendorCriteria that = new PayVendorCriteria();
		that.add(column);
        return that;
    }

    public static PayVendorCriteria create(String name, Object value) {
        return (PayVendorCriteria) create().eq(name, value);
    }
    
    public Example example() {
    	return Example.create("pay_vendor", this);
    }
    
    /**
     * equals
     *
     * @param name
     * @param value
     * @return
     */
    public PayVendorCriteria eq(String name, Object value) {
    	super.eq(name, value);
        return this;
    }

    /**
     * not equals !=
     *
     * @param name
     * @param value
     * @return
     */
    public PayVendorCriteria ne(String name, Object value) {
    	super.ne(name, value);
        return this;
    }


    /**
     * like
     *
     * @param name
     * @param value
     * @return
     */

    public PayVendorCriteria like(String name, Object value) {
    	super.like(name, value);
        return this;
    }
    
    public PayVendorCriteria notLike(String name, Object value) {
    	super.notLike(name, value);
        return this;
    }

    /**
     * 大于 great than
     *
     * @param name
     * @param value
     * @return
     */
    public PayVendorCriteria gt(String name, Object value) {
    	super.gt(name, value);
        return this;
    }

    /**
     * 大于等于 great or equal
     *
     * @param name
     * @param value
     * @return
     */
    public PayVendorCriteria ge(String name, Object value) {
    	super.ge(name, value);
        return this;
    }

    /**
     * 小于 less than
     *
     * @param name
     * @param value
     * @return
     */
    public PayVendorCriteria lt(String name, Object value) {
    	super.lt(name, value);
        return this;
    }

    /**
     * 小于等于 less or equal
     *
     * @param name
     * @param value
     * @return
     */
    public PayVendorCriteria le(String name, Object value) {
    	super.le(name, value);
        return this;
    }
    
    public PayVendorCriteria isnull(String name) {
    	super.isnull(name);
        return this;
    } 

    public PayVendorCriteria notNull(String name) {
    	super.notNull(name);
        return this;
    } 
    
    public PayVendorCriteria empty(String name) {
    	super.empty(name);
        return this;
    } 
    
    public PayVendorCriteria notEmpty(String name) {
    	super.notEmpty(name);
        return this;
    } 
    
    public PayVendorCriteria add(Column column) {
    	super.add(column);
    	return this;
    }
    
    /**************************/
	
	public void addCriterion(String name, Object value, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value == null) {
			 throw new RuntimeException("Value for " + property + " cannot be null");
		 }
		 add(Column.create(name, value, logic, typeHandler, valueType));
	}
   
	public void addCriterion(String name, Object value1, Object value2, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value1 == null || value2 == null) {
			 throw new RuntimeException("Between values for " + property + " cannot be null");
		 }
		 add(Column.create(name, value1, value2, logic, typeHandler, valueType));
	}
		 
	public PayVendorCriteria andPayVendorIdIsNull() {
		isnull("pay_vendor_id");
		return this;
	}
	
	public PayVendorCriteria andPayVendorIdIsNotNull() {
		notNull("pay_vendor_id");
		return this;
	}
	
	public PayVendorCriteria andPayVendorIdIsEmpty() {
		empty("pay_vendor_id");
		return this;
	}

	public PayVendorCriteria andPayVendorIdIsNotEmpty() {
		notEmpty("pay_vendor_id");
		return this;
	}
       public PayVendorCriteria andPayVendorIdEqualTo(java.lang.Integer value) {
          addCriterion("pay_vendor_id", value, ConditionMode.EQUAL, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }

      public PayVendorCriteria andPayVendorIdNotEqualTo(java.lang.Integer value) {
          addCriterion("pay_vendor_id", value, ConditionMode.NOT_EQUAL, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }

      public PayVendorCriteria andPayVendorIdGreaterThan(java.lang.Integer value) {
          addCriterion("pay_vendor_id", value, ConditionMode.GREATER_THEN, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }

      public PayVendorCriteria andPayVendorIdGreaterThanOrEqualTo(java.lang.Integer value) {
          addCriterion("pay_vendor_id", value, ConditionMode.GREATER_EQUAL, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }

      public PayVendorCriteria andPayVendorIdLessThan(java.lang.Integer value) {
          addCriterion("pay_vendor_id", value, ConditionMode.LESS_THEN, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }

      public PayVendorCriteria andPayVendorIdLessThanOrEqualTo(java.lang.Integer value) {
          addCriterion("pay_vendor_id", value, ConditionMode.LESS_EQUAL, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }

      public PayVendorCriteria andPayVendorIdBetween(java.lang.Integer value1, java.lang.Integer value2) {
    	  addCriterion("pay_vendor_id", value1, value2, ConditionMode.BETWEEN, "payVendorId", "java.lang.Integer", "Float");
    	  return this;
      }

      public PayVendorCriteria andPayVendorIdNotBetween(java.lang.Integer value1, java.lang.Integer value2) {
          addCriterion("pay_vendor_id", value1, value2, ConditionMode.NOT_BETWEEN, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }
        
      public PayVendorCriteria andPayVendorIdIn(List<java.lang.Integer> values) {
          addCriterion("pay_vendor_id", values, ConditionMode.IN, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }

      public PayVendorCriteria andPayVendorIdNotIn(List<java.lang.Integer> values) {
          addCriterion("pay_vendor_id", values, ConditionMode.NOT_IN, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }
	public PayVendorCriteria andNameIsNull() {
		isnull("name");
		return this;
	}
	
	public PayVendorCriteria andNameIsNotNull() {
		notNull("name");
		return this;
	}
	
	public PayVendorCriteria andNameIsEmpty() {
		empty("name");
		return this;
	}

	public PayVendorCriteria andNameIsNotEmpty() {
		notEmpty("name");
		return this;
	}
        public PayVendorCriteria andNameLike(java.lang.String value) {
    	   addCriterion("name", value, ConditionMode.FUZZY, "name", "java.lang.String", "Float");
    	   return this;
      }

      public PayVendorCriteria andNameNotLike(java.lang.String value) {
          addCriterion("name", value, ConditionMode.NOT_FUZZY, "name", "java.lang.String", "Float");
          return this;
      }
      public PayVendorCriteria andNameEqualTo(java.lang.String value) {
          addCriterion("name", value, ConditionMode.EQUAL, "name", "java.lang.String", "String");
          return this;
      }

      public PayVendorCriteria andNameNotEqualTo(java.lang.String value) {
          addCriterion("name", value, ConditionMode.NOT_EQUAL, "name", "java.lang.String", "String");
          return this;
      }

      public PayVendorCriteria andNameGreaterThan(java.lang.String value) {
          addCriterion("name", value, ConditionMode.GREATER_THEN, "name", "java.lang.String", "String");
          return this;
      }

      public PayVendorCriteria andNameGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("name", value, ConditionMode.GREATER_EQUAL, "name", "java.lang.String", "String");
          return this;
      }

      public PayVendorCriteria andNameLessThan(java.lang.String value) {
          addCriterion("name", value, ConditionMode.LESS_THEN, "name", "java.lang.String", "String");
          return this;
      }

      public PayVendorCriteria andNameLessThanOrEqualTo(java.lang.String value) {
          addCriterion("name", value, ConditionMode.LESS_EQUAL, "name", "java.lang.String", "String");
          return this;
      }

      public PayVendorCriteria andNameBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("name", value1, value2, ConditionMode.BETWEEN, "name", "java.lang.String", "String");
    	  return this;
      }

      public PayVendorCriteria andNameNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("name", value1, value2, ConditionMode.NOT_BETWEEN, "name", "java.lang.String", "String");
          return this;
      }
        
      public PayVendorCriteria andNameIn(List<java.lang.String> values) {
          addCriterion("name", values, ConditionMode.IN, "name", "java.lang.String", "String");
          return this;
      }

      public PayVendorCriteria andNameNotIn(List<java.lang.String> values) {
          addCriterion("name", values, ConditionMode.NOT_IN, "name", "java.lang.String", "String");
          return this;
      }
	public PayVendorCriteria andAppidIsNull() {
		isnull("appid");
		return this;
	}
	
	public PayVendorCriteria andAppidIsNotNull() {
		notNull("appid");
		return this;
	}
	
	public PayVendorCriteria andAppidIsEmpty() {
		empty("appid");
		return this;
	}

	public PayVendorCriteria andAppidIsNotEmpty() {
		notEmpty("appid");
		return this;
	}
        public PayVendorCriteria andAppidLike(java.lang.String value) {
    	   addCriterion("appid", value, ConditionMode.FUZZY, "appid", "java.lang.String", "String");
    	   return this;
      }

      public PayVendorCriteria andAppidNotLike(java.lang.String value) {
          addCriterion("appid", value, ConditionMode.NOT_FUZZY, "appid", "java.lang.String", "String");
          return this;
      }
      public PayVendorCriteria andAppidEqualTo(java.lang.String value) {
          addCriterion("appid", value, ConditionMode.EQUAL, "appid", "java.lang.String", "String");
          return this;
      }

      public PayVendorCriteria andAppidNotEqualTo(java.lang.String value) {
          addCriterion("appid", value, ConditionMode.NOT_EQUAL, "appid", "java.lang.String", "String");
          return this;
      }

      public PayVendorCriteria andAppidGreaterThan(java.lang.String value) {
          addCriterion("appid", value, ConditionMode.GREATER_THEN, "appid", "java.lang.String", "String");
          return this;
      }

      public PayVendorCriteria andAppidGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("appid", value, ConditionMode.GREATER_EQUAL, "appid", "java.lang.String", "String");
          return this;
      }

      public PayVendorCriteria andAppidLessThan(java.lang.String value) {
          addCriterion("appid", value, ConditionMode.LESS_THEN, "appid", "java.lang.String", "String");
          return this;
      }

      public PayVendorCriteria andAppidLessThanOrEqualTo(java.lang.String value) {
          addCriterion("appid", value, ConditionMode.LESS_EQUAL, "appid", "java.lang.String", "String");
          return this;
      }

      public PayVendorCriteria andAppidBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("appid", value1, value2, ConditionMode.BETWEEN, "appid", "java.lang.String", "String");
    	  return this;
      }

      public PayVendorCriteria andAppidNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("appid", value1, value2, ConditionMode.NOT_BETWEEN, "appid", "java.lang.String", "String");
          return this;
      }
        
      public PayVendorCriteria andAppidIn(List<java.lang.String> values) {
          addCriterion("appid", values, ConditionMode.IN, "appid", "java.lang.String", "String");
          return this;
      }

      public PayVendorCriteria andAppidNotIn(List<java.lang.String> values) {
          addCriterion("appid", values, ConditionMode.NOT_IN, "appid", "java.lang.String", "String");
          return this;
      }
	public PayVendorCriteria andAppsecretIsNull() {
		isnull("appsecret");
		return this;
	}
	
	public PayVendorCriteria andAppsecretIsNotNull() {
		notNull("appsecret");
		return this;
	}
	
	public PayVendorCriteria andAppsecretIsEmpty() {
		empty("appsecret");
		return this;
	}

	public PayVendorCriteria andAppsecretIsNotEmpty() {
		notEmpty("appsecret");
		return this;
	}
        public PayVendorCriteria andAppsecretLike(java.lang.String value) {
    	   addCriterion("appsecret", value, ConditionMode.FUZZY, "appsecret", "java.lang.String", "String");
    	   return this;
      }

      public PayVendorCriteria andAppsecretNotLike(java.lang.String value) {
          addCriterion("appsecret", value, ConditionMode.NOT_FUZZY, "appsecret", "java.lang.String", "String");
          return this;
      }
      public PayVendorCriteria andAppsecretEqualTo(java.lang.String value) {
          addCriterion("appsecret", value, ConditionMode.EQUAL, "appsecret", "java.lang.String", "String");
          return this;
      }

      public PayVendorCriteria andAppsecretNotEqualTo(java.lang.String value) {
          addCriterion("appsecret", value, ConditionMode.NOT_EQUAL, "appsecret", "java.lang.String", "String");
          return this;
      }

      public PayVendorCriteria andAppsecretGreaterThan(java.lang.String value) {
          addCriterion("appsecret", value, ConditionMode.GREATER_THEN, "appsecret", "java.lang.String", "String");
          return this;
      }

      public PayVendorCriteria andAppsecretGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("appsecret", value, ConditionMode.GREATER_EQUAL, "appsecret", "java.lang.String", "String");
          return this;
      }

      public PayVendorCriteria andAppsecretLessThan(java.lang.String value) {
          addCriterion("appsecret", value, ConditionMode.LESS_THEN, "appsecret", "java.lang.String", "String");
          return this;
      }

      public PayVendorCriteria andAppsecretLessThanOrEqualTo(java.lang.String value) {
          addCriterion("appsecret", value, ConditionMode.LESS_EQUAL, "appsecret", "java.lang.String", "String");
          return this;
      }

      public PayVendorCriteria andAppsecretBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("appsecret", value1, value2, ConditionMode.BETWEEN, "appsecret", "java.lang.String", "String");
    	  return this;
      }

      public PayVendorCriteria andAppsecretNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("appsecret", value1, value2, ConditionMode.NOT_BETWEEN, "appsecret", "java.lang.String", "String");
          return this;
      }
        
      public PayVendorCriteria andAppsecretIn(List<java.lang.String> values) {
          addCriterion("appsecret", values, ConditionMode.IN, "appsecret", "java.lang.String", "String");
          return this;
      }

      public PayVendorCriteria andAppsecretNotIn(List<java.lang.String> values) {
          addCriterion("appsecret", values, ConditionMode.NOT_IN, "appsecret", "java.lang.String", "String");
          return this;
      }
	public PayVendorCriteria andConfigIsNull() {
		isnull("config");
		return this;
	}
	
	public PayVendorCriteria andConfigIsNotNull() {
		notNull("config");
		return this;
	}
	
	public PayVendorCriteria andConfigIsEmpty() {
		empty("config");
		return this;
	}

	public PayVendorCriteria andConfigIsNotEmpty() {
		notEmpty("config");
		return this;
	}
        public PayVendorCriteria andConfigLike(java.lang.String value) {
    	   addCriterion("config", value, ConditionMode.FUZZY, "config", "java.lang.String", "String");
    	   return this;
      }

      public PayVendorCriteria andConfigNotLike(java.lang.String value) {
          addCriterion("config", value, ConditionMode.NOT_FUZZY, "config", "java.lang.String", "String");
          return this;
      }
      public PayVendorCriteria andConfigEqualTo(java.lang.String value) {
          addCriterion("config", value, ConditionMode.EQUAL, "config", "java.lang.String", "String");
          return this;
      }

      public PayVendorCriteria andConfigNotEqualTo(java.lang.String value) {
          addCriterion("config", value, ConditionMode.NOT_EQUAL, "config", "java.lang.String", "String");
          return this;
      }

      public PayVendorCriteria andConfigGreaterThan(java.lang.String value) {
          addCriterion("config", value, ConditionMode.GREATER_THEN, "config", "java.lang.String", "String");
          return this;
      }

      public PayVendorCriteria andConfigGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("config", value, ConditionMode.GREATER_EQUAL, "config", "java.lang.String", "String");
          return this;
      }

      public PayVendorCriteria andConfigLessThan(java.lang.String value) {
          addCriterion("config", value, ConditionMode.LESS_THEN, "config", "java.lang.String", "String");
          return this;
      }

      public PayVendorCriteria andConfigLessThanOrEqualTo(java.lang.String value) {
          addCriterion("config", value, ConditionMode.LESS_EQUAL, "config", "java.lang.String", "String");
          return this;
      }

      public PayVendorCriteria andConfigBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("config", value1, value2, ConditionMode.BETWEEN, "config", "java.lang.String", "String");
    	  return this;
      }

      public PayVendorCriteria andConfigNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("config", value1, value2, ConditionMode.NOT_BETWEEN, "config", "java.lang.String", "String");
          return this;
      }
        
      public PayVendorCriteria andConfigIn(List<java.lang.String> values) {
          addCriterion("config", values, ConditionMode.IN, "config", "java.lang.String", "String");
          return this;
      }

      public PayVendorCriteria andConfigNotIn(List<java.lang.String> values) {
          addCriterion("config", values, ConditionMode.NOT_IN, "config", "java.lang.String", "String");
          return this;
      }
}